package system

import (
	"context"
	"gf_blog_admin/internal/service"

	"gf_blog_admin/api/system/v1"
)

func (c *ControllerV1) DictDataUpdate(ctx context.Context, req *v1.DictDataUpdateReq) (res *v1.DictDataUpdateRes, err error) {
	res = &v1.DictDataUpdateRes{}
	err = service.SysDictData().Update(ctx, req.Id, &req.DictDataFormInput)
	return
}
